Skip to content

export Function

SwitchInlineQueryChosenChat ​

Constructor ​

ts
KeyboardButton.SwitchInlineQueryChosenChat( text, switch_inline_query_chosen_chat )
ParameterTypeDescription
textstringLabel text on the button.
switch_inline_query_chosen_chatSwitchInlineQueryChosenChatIf set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field.

Return: KeyboardButtonPayload